package com.gome.ocean.service.utils;

import com.gome.ocean.dao.model.gddl.AppDatasourceBO;

/**
 * Created by liuqingxia on 2016/7/29. <br>
 * 与数据源相关的操作方法
 */
public class DataSourceUtils {

    /**
     * 根据AppDatasourceBO组装数据源格式
     * 
     * @param appDatasourceBO
     * @return
     */
    public static String transSourceExpression(AppDatasourceBO appDatasourceBO) {
        return appDatasourceBO.getUserName() + "@" + appDatasourceBO.getJdbcUrl() + "【"
               + appDatasourceBO.getSourceType() + "】";
    }
}
